import request from '@/utils/request'

export function rolelist(params) {
  return request({
    url: '/a/u/actor/list',
    method: 'get',
    params:params
  })
}
export function roleadd(params) {
  return request({
    url: '/a/u/actor',
    method: 'post',
    params:params
  })
}
export function delrole(id) {
  return request({
    url: '/a/u/actor/'+id,
    method: 'delete'
  })
}
export function checkrole(id) {
  return request({
    url: '/a/u/actor/'+id,
    method: 'get'
  })
}
export function editrole(id,params) {
  return request({
    url: '/a/u/actor/'+id,
    method: 'post',
    params:params
  })
}
